package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.SalesTop10ReportList;
import com.sky.entity.ShoppingCart;
import com.sky.vo.SalesTop10ReportVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDetailMapper {

    void insert(List<OrderDetail> orderDetails);

    @Select("select * from order_detail where order_id = #{id}")
    List<ShoppingCart> queryOrderDetail(long id);

    List<SalesTop10ReportList> queryOrderDetailByIds(List<Integer> list);
}
